/**
 * 基础路由
 * @type { *[] }
 */

const constantRouterMap = [
  {
    path: '/',
    name: 'Example',
    redirect: { name: 'ExampleHelloIndex' },
    children: [
      {
        path: '/example',
        name: 'ExampleHelloIndex',
        component: () => import('@/views/example/hello/Index.vue')
      },
      // {
      //   path: '/note',
      //   name: 'note-window',
      //   component: () => import('@/views/example/hello/NoteWindow.vue')
      // },
      {
        path: '/node',
        name: 'Node',
        component: () => import('@/views/example/hello/NoteEditor.vue'),
        props: { id: 'node' },
        redirect: { name: 'NodeIndex' },
        children: [
          {
            path: '/node/add/index',
            name: 'NodeIndex',
            component: () => import('@/views/example/hello/NoteEditor.vue')
          }
        ]
      }
    ]
  },
]

export default constantRouterMap